<!--#include("header.html")-->
<div id="issueBody">
<div id="pxeContent">
	<div class="pxeHeading">
		<h2>{$lang->project_menus["dispIssuetrackerViewSource"]}</h2>
	</div>
	<!--@if($logs)-->
		<!--@if(substr($path,-1)=='/')-->
		{@ $type = 'compare'}
		<!--@else-->
		{@ $type = 'diff'}
		<!--@end-->
	<!--@end-->
	<form action="{Context::getRequestUri()}" method="get" id="logForm">
	<input type="hidden" name="vid" value="{$vid}" />
	<input type="hidden" name="path" value="{htmlspecialchars($path)}" />
	<input type="hidden" name="mid" value="{$mid}" />
	<input type="hidden" name="act" value="{$act}" />
	<input type="hidden" name="type" value="{$type}" />
	<div class="pxeCodeHeader">
		<table border="1" cellspacing="0" summary="Directory Information">
		<tr>
			<th scope="row">{$lang->repos_path}</th>
			<td>
				{@ end($path_tree); }
				{@ $lastkey = key($path_tree); }
				{@ $lastval = current($path_tree); }
				{@ array_pop($path_tree); }
				<!--@foreach($path_tree as $key=>$val)-->
                    <!--@if($key=='/')-->
                        <a href="{getUrl('type','','path',urlencode($val), revs, $revs)}">{$module_info->svn_url}</a>
                    <!--@else-->
                        <a href="{getUrl('type','','path',urlencode($val), revs, $revs)}">{$key}/</a>
                    <!--@end-->
				<!--@end-->
				<!--@if($lastkey=='/')-->
				<a href="{getUrl('type','','path',urlencode($lastval), revs, $revs)}"><em>{$module_info->svn_url}</em></a>
				<!--@else-->
				<a href="{getUrl('type','file','path',urlencode($lastval), revs, $revs)}"><em>{$lastkey}/</em></a>
				<!--@end-->
			</td>
		</tr>
		</table>
		<div class="do">
			<span class="btnPxe strong"><input type="submit" value="{$lang->cmd_compare}" /></span>
		</div>
	</div>
	<table border="1" cellspacing="0" class="pxeT3">
	<thead>
	<tr>
		<th scope="col">{$lang->revision}</th>
		<th scope="col">ER</th>
		<th scope="col">BR</th>
		<th scope="col">{$lang->description}</th>
		<th scope="col">{$lang->contributor}</th>
		<th scope="col">{$lang->date}</th>
	</tr>
	</thead>
	<tbody id="logList">
    <!--@foreach($logs as $item)-->
		<!--@if(!$brev && $item->revision < $erev)--> {@ $brev = $item->revision } <!--@end-->
		<!--@if($item->paths[0]->path)--> {@ $p = $item->paths[0]->path} <!--@else--> {@ $p = $path } <!--@end-->
		<tr>
			<td class="num aRight"><a href="{getUrl('type','file','path',urlencode($p),'revs',$item->revision)}">r{$item->revision}</a></td>
			<td><input name="erev" type="radio" value="{$item->revision}" class="iRadio"  <!--@if($erev==$item->revision)-->checked="checked"<!--@end--> title="r{$item->revision}" /></td>
			<td><input name="brev" type="radio" value="{$item->revision}" class="iRadio"  <!--@if($brev==$item->revision)-->checked="checked"<!--@end--> title="r{$item->revision}" /></td>
			<td class="title">{htmlspecialchars($item->msg)}&nbsp;</td>
			<td>{$item->author}</td>
			<td class="time">{$item->date} <em>({$item->gap})</em></td>
		</tr>
	<!--@end-->
	</tbody>
	</table>
	<div class="buttonArea">
		<!--@if($lastrev)-->
		<div class="fLeft" id="moreButton"><span class="btnPxe"><button type="button" onclick="getMoreLog()">{$lang->more}</button></span></div>
		<!--@end-->
		<div class="fRight"><span class="btnPxe strong"><input type="submit" value="{$lang->cmd_compare}" /></span></div>
	</div>
	<input type="hidden" name="lastrev" value="{$lastrev}" />
	</form>
</div>
</div>
<!--#include("footer.html")-->
